-- GENERATED SPELL FOR [Earthen Hallshaper] --


function spell0_7077(pUnit, Event) --@Earthen Guards Destroyed,n/a--
pUnit:FullCastSpellOnTarget(10666,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7077', 630, 1)
end

function Sorts_7077(pUnit, Event)
local choix_sorts_7077 = math.random(0, 0)
if choix_sorts_7077 == 0 then
pUnit:RegisterEvent('spell0_7077', 1, 1)
end
end

function mob7077_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7077', math.random(1500, 3000), 1)
end

function mob7077_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7077_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7077_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7077, 1, 'mob7077_Action')
RegisterUnitEvent(7077, 2, 'mob7077_Leave')
RegisterUnitEvent(7077, 3, 'mob7077_Kill')
RegisterUnitEvent(7077, 4, 'mob7077_Die')
